package com.zmn.oms.services.interfaces.conf.attachment;


import com.zmn.oms.model.entity.conf.attachment.WorkOrderPictureStandard;

import java.util.List;

/**
 * 渠道-工单照片service
 * 
 * @author linfeng
 * @since 2020/09/17 17:30
 */
public interface WorkOrderPictureStandardService {
    /**
     * 根据主键查询
     * 
     * @param ID
     * @return
     */
    WorkOrderPictureStandard findByKey(Integer id);

    /**
     * 根据relateId查询
     */
    List<WorkOrderPictureStandard> listStandardByRelateId(Integer relateId);

    /**
     * 根据relateIdList查询
     */
    List<WorkOrderPictureStandard> listStandardByRelateIds(List<Integer> relateIds);

    /**
     * 插入
     */
    int insert(WorkOrderPictureStandard standard);

    /**
     * 批量插入
     */
    int batchInsert(List<WorkOrderPictureStandard> standardList);

    /**
     * 删除
     */
    int delete(WorkOrderPictureStandard standard);

}
